import request from '@/util/request.js'

export const adminLogin=(registerDate)=>{
    
    const params=new URLSearchParams()
    for(let key in registerDate){
        params.append(key,registerDate[key]);
    }
   return request.post('/admin/login',params);
}

export const getadmin=(username)=>{
    return request.get(`/admin/user?username=${username}`)
}

export const updatePwd=(pwdData)=>{
    return request.patch('/admin/updatePwd',pwdData)
}